package archer.framework.common.repository.support.ebean;

import archer.framework.utils.UUIDUtils;
import com.avaje.ebean.config.IdGenerator;

/**
 * @author christ
 * @date 2016/6/2
 */
public class StringIdGenerator implements IdGenerator {

    @Override
    public Object nextValue() {
        return UUIDUtils.randomUUID();
    }

    public String getName() {
        return "short-uuid";
    }
}
